package com.shenw.frame;

import java.io.IOException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class Main {
	
	private static Logger logger = LoggerFactory.getLogger(Main.class);
	
	public static void main(String[] args) {
		CommandCenter center = CommandCenter.getInstance();
		try {
			center.start();
		} catch (IOException e) {
			logger.error("Error.",e);
			center.exit();
		}
	}
	
	public static void exit() {	
		System.exit(0);
	}
}
